<script setup lang="ts">
defineProps(['b','c','d', 'updateA'])
</script>

<template>
<h3>孙组件</h3>
  <h4>收到祖组件的{{$attrs}}</h4>
  <button @click="updateA(5)">修改祖组件的a</button>
</template>

<style scoped>

</style>